import request from "@/utils/request";
import qs from 'qs'

// paramter = [1,2,3]
export function delete1(parameter) {
  return request({
    url: '/mock/delete1',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data: parameter
  })
}

export function delete2(parameter) {
  return request({
    url: '/mock/delete2?ids=' + parameter.join(','),
    method: 'get',
  })
}

export function delete3(parameter) {
  return request({
    url: '/mock/delete3',
    method: 'post',
    data: qs.stringify({ ids: parameter.join(',') })
  })
}
